<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="jquery-3.7.1.js"></script>
    <style>
        .div01{
            display: flex;
        }
        .div01 div{
            border: 10px;
            width: 100px;
            height: 60px;
            margin: auto;
            font-size: 16px;
        }
        h3:hover{
            color: red;
        }
</style>
</head>
<body>
    <div class="div01">
         <div class="c1">
            <h3 >精选</h3>
            <p>猜你喜欢</p>
         </div>
         <div>
            <h3>智能先锋</h3>
            <p>大电器械</p>
         </div>
         <div>
            <h3>居家优品</h3>
            <p>品质生活</p>
         </div>
         <div>
            <h3>超市百货</h3>
            <p>百货生鲜</p>
         </div>
         <div>
            <h3>时尚达人</h3>
            <p>美妆穿搭</p>
         </div>
         <div>
            <h3>进口好物</h3>
            <p>京东国际</p>
         </div>
    </div>
        <input type="button" value="提交" class="button01">
    <div>
    </div>
    <script>
        $(".button01").click(function(){
           alert("------")
           $(".div01>.c1>p").css("color","red")
           $(".div01 p").not(".div01>.c1>p").css("color","grey")
           $(".div01>div").children().css("margin-bottom","2px")
        })   
    </script>
</body>
</html>